//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.ruoyi.live.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

public class LiveBarrageChannel implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(
            value = "id",
            type = IdType.AUTO
    )
    private Long id;
    private Long channelId;
    private Integer type;
    private Long barrageId;
    private Integer timeIndex;
    private Long createTime;
    private String fromUserName;
    private Integer fromUserLevel;
    private Integer userAddCount;
    @TableField(
            exist = false
    )
    private String content;

    public LiveBarrageChannel() {
    }

    public Long getId() {
        return this.id;
    }

    public Long getChannelId() {
        return this.channelId;
    }

    public Integer getType() {
        return this.type;
    }

    public Long getBarrageId() {
        return this.barrageId;
    }

    public Integer getTimeIndex() {
        return this.timeIndex;
    }

    public Long getCreateTime() {
        return this.createTime;
    }

    public String getFromUserName() {
        return this.fromUserName;
    }

    public Integer getFromUserLevel() {
        return this.fromUserLevel;
    }

    public Integer getUserAddCount() {
        return this.userAddCount;
    }

    public String getContent() {
        return this.content;
    }

    public LiveBarrageChannel setId(final Long id) {
        this.id = id;
        return this;
    }

    public LiveBarrageChannel setChannelId(final Long channelId) {
        this.channelId = channelId;
        return this;
    }

    public LiveBarrageChannel setType(final Integer type) {
        this.type = type;
        return this;
    }

    public LiveBarrageChannel setBarrageId(final Long barrageId) {
        this.barrageId = barrageId;
        return this;
    }

    public LiveBarrageChannel setTimeIndex(final Integer timeIndex) {
        this.timeIndex = timeIndex;
        return this;
    }

    public LiveBarrageChannel setCreateTime(final Long createTime) {
        this.createTime = createTime;
        return this;
    }

    public LiveBarrageChannel setFromUserName(final String fromUserName) {
        this.fromUserName = fromUserName;
        return this;
    }

    public LiveBarrageChannel setFromUserLevel(final Integer fromUserLevel) {
        this.fromUserLevel = fromUserLevel;
        return this;
    }

    public LiveBarrageChannel setUserAddCount(final Integer userAddCount) {
        this.userAddCount = userAddCount;
        return this;
    }

    public LiveBarrageChannel setContent(final String content) {
        this.content = content;
        return this;
    }

    public String toString() {
        return "LiveBarrageChannel(id=" + this.getId() + ", channelId=" + this.getChannelId() + ", type=" + this.getType() + ", barrageId=" + this.getBarrageId() + ", timeIndex=" + this.getTimeIndex() + ", createTime=" + this.getCreateTime() + ", fromUserName=" + this.getFromUserName() + ", fromUserLevel=" + this.getFromUserLevel() + ", userAddCount=" + this.getUserAddCount() + ", content=" + this.getContent() + ")";
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof LiveBarrageChannel)) {
            return false;
        } else {
            LiveBarrageChannel other = (LiveBarrageChannel)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$id = this.getId();
                Object other$id = other.getId();
                if (this$id == null) {
                    if (other$id != null) {
                        return false;
                    }
                } else if (!this$id.equals(other$id)) {
                    return false;
                }

                Object this$channelId = this.getChannelId();
                Object other$channelId = other.getChannelId();
                if (this$channelId == null) {
                    if (other$channelId != null) {
                        return false;
                    }
                } else if (!this$channelId.equals(other$channelId)) {
                    return false;
                }

                Object this$type = this.getType();
                Object other$type = other.getType();
                if (this$type == null) {
                    if (other$type != null) {
                        return false;
                    }
                } else if (!this$type.equals(other$type)) {
                    return false;
                }

                label110: {
                    Object this$barrageId = this.getBarrageId();
                    Object other$barrageId = other.getBarrageId();
                    if (this$barrageId == null) {
                        if (other$barrageId == null) {
                            break label110;
                        }
                    } else if (this$barrageId.equals(other$barrageId)) {
                        break label110;
                    }

                    return false;
                }

                label103: {
                    Object this$timeIndex = this.getTimeIndex();
                    Object other$timeIndex = other.getTimeIndex();
                    if (this$timeIndex == null) {
                        if (other$timeIndex == null) {
                            break label103;
                        }
                    } else if (this$timeIndex.equals(other$timeIndex)) {
                        break label103;
                    }

                    return false;
                }

                Object this$createTime = this.getCreateTime();
                Object other$createTime = other.getCreateTime();
                if (this$createTime == null) {
                    if (other$createTime != null) {
                        return false;
                    }
                } else if (!this$createTime.equals(other$createTime)) {
                    return false;
                }

                label89: {
                    Object this$fromUserName = this.getFromUserName();
                    Object other$fromUserName = other.getFromUserName();
                    if (this$fromUserName == null) {
                        if (other$fromUserName == null) {
                            break label89;
                        }
                    } else if (this$fromUserName.equals(other$fromUserName)) {
                        break label89;
                    }

                    return false;
                }

                label82: {
                    Object this$fromUserLevel = this.getFromUserLevel();
                    Object other$fromUserLevel = other.getFromUserLevel();
                    if (this$fromUserLevel == null) {
                        if (other$fromUserLevel == null) {
                            break label82;
                        }
                    } else if (this$fromUserLevel.equals(other$fromUserLevel)) {
                        break label82;
                    }

                    return false;
                }

                Object this$userAddCount = this.getUserAddCount();
                Object other$userAddCount = other.getUserAddCount();
                if (this$userAddCount == null) {
                    if (other$userAddCount != null) {
                        return false;
                    }
                } else if (!this$userAddCount.equals(other$userAddCount)) {
                    return false;
                }

                Object this$content = this.getContent();
                Object other$content = other.getContent();
                if (this$content == null) {
                    if (other$content != null) {
                        return false;
                    }
                } else if (!this$content.equals(other$content)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof LiveBarrageChannel;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $id = this.getId();
        int result1 = result * 59 + ($id == null ? 43 : $id.hashCode());
        Object $channelId = this.getChannelId();
        result1 = result * 59 + ($channelId == null ? 43 : $channelId.hashCode());
        Object $type = this.getType();
        result1 = result * 59 + ($type == null ? 43 : $type.hashCode());
        Object $barrageId = this.getBarrageId();
        result1 = result * 59 + ($barrageId == null ? 43 : $barrageId.hashCode());
        Object $timeIndex = this.getTimeIndex();
        result1 = result * 59 + ($timeIndex == null ? 43 : $timeIndex.hashCode());
        Object $createTime = this.getCreateTime();
        result1 = result * 59 + ($createTime == null ? 43 : $createTime.hashCode());
        Object $fromUserName = this.getFromUserName();
        result1 = result * 59 + ($fromUserName == null ? 43 : $fromUserName.hashCode());
        Object $fromUserLevel = this.getFromUserLevel();
        result1 = result * 59 + ($fromUserLevel == null ? 43 : $fromUserLevel.hashCode());
        Object $userAddCount = this.getUserAddCount();
        result1 = result * 59 + ($userAddCount == null ? 43 : $userAddCount.hashCode());
        Object $content = this.getContent();
        result1 = result * 59 + ($content == null ? 43 : $content.hashCode());
        return result1;
    }
}
